/**
 * @author        yangmingchao <amustlang_yang@foxmail.com>
 * @date          2024-01-09 23:21:32
 * Copyright © YourCompanyName All rights reserved
 */
import request from '@/utils/request'

// 查询短剧剧集列表
export function listEpisode(query) {
  return request({
    url: '/drama/episode/page',
    method: 'get',
    params: query
  })
}

// 查询短剧剧集详细
export function getEpisode(id) {
  return request({
    url: '/drama/episode/' + id,
    method: 'get'
  })
}

// 新增短剧剧集
export function addEpisode(data) {
  return request({
    url: '/drama/episode',
    method: 'post',
    data: data
  })
}

// 修改短剧剧集
export function updateEpisode(data) {
  return request({
    url: '/drama/episode',
    method: 'put',
    data: data
  })
}

// 批量修改
export function updateEpisodeMods(data) {
  return request({
    url: '/drama/episode/mods',
    method: 'put',
    data: data
  })
}

// 删除短剧剧集
export function delEpisode(id) {
  return request({
    url: '/drama/episode/' + id,
    method: 'delete'
  })
}

// 批量添加剧集--废弃
export function episodeAdds(data) {
  return request({
    url: '/drama/episode/adds',
    method: 'put',
    data: data
  })
}



// 批量添加剧集
export function episodeModsByDel(data) {
  return request({
    url: '/drama/episode/modsByDel',
    method: 'put',
    data: data
  })
}